package io.renren.wechat.support;

public interface WechatConstants {
    // corpid	是	企业ID，获取方式参考：术语说明-corpid
    // corpSecret	是	应用的凭证密钥，获取方式参考：术语说明-secret
    String GET_TOKEN_URL = "https://qyapi.weixin.qq.com/cgi-bin/gettoken?corpid=%s&corpsecret=%s";
    String GET_PROVIDER_TOKEN_URL = "https://qyapi.weixin.qq.com/cgi-bin/get_provider_token?corpid=%s&corpsecret=%s";

    /* 创建成员 */
    // 请求方式：POST（HTTPS）
    String CONTACT_CREATE_USER_URL = "https://qyapi.weixin.qq.com/cgi-bin/user/create?access_token=%s";

    /* 读取成员 */
    String CONTACT_GET_USER_URL = "https://qyapi.weixin.qq.com/cgi-bin/user/get?access_token=%s&userid=%s";

    String CONTACT_UPDATE_USER_URL = "https://qyapi.weixin.qq.com/cgi-bin/user/update?access_token=%s";
    //删除成员
    //参数	        必须	    说明
    //access_token	是	    调用接口凭证
    //userid	    是	    成员UserID。对应管理端的帐号
    String CONTACT_DELETE_USER_URL = "https://qyapi.weixin.qq.com/cgi-bin/user/delete?access_token=%s&userid=%s";
    String CONTACT_BATCH_DELETE_USER_URL = "https://qyapi.weixin.qq.com/cgi-bin/user/batchdelete?access_token=%s";
    /* 获取部门成员 */
    //access_token	是	调用接口凭证
    //department_id	是	获取的部门id
    //fetch_child	否	是否递归获取子部门下面的成员：1-递归获取，0-只获取本部门
    String CONTACT_USER_SIMPLE_LIST_URL = "https://qyapi.weixin.qq.com/cgi-bin/user/simplelist?access_token=%s&department_id=%s&fetch_child=%s";
    String CONTACT_USER_LIST_URL = "https://qyapi.weixin.qq.com/cgi-bin/user/list?access_token=%s&department_id=%s&fetch_child=%s";
    //参数	        必须	    说明
    //access_token	是	    调用接口凭证
    //userid	    是	    企业内的成员id
    String CONTACT_GET_OPENID_URL = "https://qyapi.weixin.qq.com/cgi-bin/user/convert_to_openid?access_token=%s";

    ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

    /* 获取部门列表 */
    String DEPARTMENT_LIST_URL = "https://qyapi.weixin.qq.com/cgi-bin/department/list?access_token=%s";
    /* 创建部门 */
    String DEPARTMENT_CREATE_URL = "https://qyapi.weixin.qq.com/cgi-bin/department/create?access_token=%s";
    /* 更新部门 */
    String DEPARTMENT_UPDATE_URL = "https://qyapi.weixin.qq.com/cgi-bin/department/update?access_token=%s";
    /* 删除部门 */
    String DEPARTMENT_DELETE_URL = "https://qyapi.weixin.qq.com/cgi-bin/department/delete?access_token=%s&id=%s";


    /* 获取企业永久授权码 */
    String SUITE_GET_PERMANENT_CODE_URL = "https://qyapi.weixin.qq.com/cgi-bin/service/get_permanent_code?suite_access_token=%s";

    String SUITE_ACCESS_TOKEN_URL = "https://qyapi.weixin.qq.com/cgi-bin/service/get_suite_token";
    String SUITE_GET_PRE_AUTH_CODE_URL = "https://qyapi.weixin.qq.com/cgi-bin/service/get_pre_auth_code?suite_access_token=%s";
    String SUITE_GET_CORP_AUTH_INFO_URL = "https://qyapi.weixin.qq.com/cgi-bin/service/get_auth_info?suite_access_token=%s";
    /* 获取企业access_token */
    String SUITE_GET_CORP_ACCESS_TOKEN_URL = "https://qyapi.weixin.qq.com/cgi-bin/service/get_corp_token?suite_access_token=%s";
    /* 获取应用的管理员列表 */
    String SUITE_GET_ADMIN_LIST_URL = "https://qyapi.weixin.qq.com/cgi-bin/service/get_admin_list?suite_access_token=%s";


    String SUITE_GET_USER_INFO_3RD_URL = "https://qyapi.weixin.qq.com/cgi-bin/service/getuserinfo3rd?access_token=%s&code=%s";
    //    String SUITE_GET_USER_INFO_3RD_URL = "https://qyapi.weixin.qq.com/cgi-bin/service/getuserinfo3rd?debug=1&access_token=%s&code=%s";
    String SUITE_GET_USER_DETAIL_3RD_URL = "https://qyapi.weixin.qq.com/cgi-bin/service/getuserdetail3rd?access_token=%s";
    String SUITE_USERID_TO_OPENID_URL = "https://qyapi.weixin.qq.com/cgi-bin/user/convert_to_openid?access_token=%s";
    String SUITE_GET_USER_LOGIN_INFO_URL = "https://qyapi.weixin.qq.com/cgi-bin/service/get_login_info?access_token=%s";


    public static final String APP_HANQI = "汉企办公";

    public static final String ZIJI_INNER_KEY = "ziji20221111";

    public static final String OFFICE_HOST = "http://127.0.0.1:8088/office";

}
